﻿/**
 * Peter
 * Created by: Peter Development Team
 *    http://peter.codeplex.com/
 * 
 * GNU General Public License version 2 (GPLv2)
 *    http://peter.codeplex.com/license
 *
 *  This code is provided on an AS IS basis, with no WARRANTIES,
 *  CONDITIONS or GUARANTEES of any kind.
 *
 **/
using System;

namespace Peter.DataAccess.EventArguments
{
   /// <summary>
   /// Event arguments for when a line is written to the console
   /// </summary>
   public class LineEventArgs : EventArgs
   {
      /// <summary>
      /// Initializes a new line event args object.
      /// </summary>
      /// <param name="line">Line beging written.</param>
      /// <param name="isError">True if line is an error.</param>
      public LineEventArgs (string line, bool isError = false)
      {
         this.Line = line;
         this.IsError = isError;
      }

      /// <summary>
      /// Gets the line written.
      /// </summary>
      public string Line { get; private set; }

      /// <summary>
      /// Gets if the line is an error or not.
      /// </summary>
      public bool IsError { get; private set; }
   }
}
